package com.demo.service;

import com.demo.dto.ClassesPageQueryDTO;
import com.demo.dto.LeaveDTO;
import com.demo.dto.LeavePageQueryDTO;
import com.demo.pojo.Leave;
import com.demo.result.PageResult;
import com.fasterxml.jackson.core.JsonProcessingException;
import org.springframework.http.ResponseEntity;

import java.util.Map;

public interface LeaveService {

    void save(LeaveDTO leaveDTO);

    Boolean delete(String leaveID);
    PageResult pageQuery(LeavePageQueryDTO leavePageQueryDTO);
    Leave selectByLeaveID(String leaveID);

    void update(LeaveDTO leaveDTO);

    ResponseEntity<byte[]> exportData(Map<String, String> params) throws JsonProcessingException;
}
